Widget.prototype.webXQuery = function(url, xquery, callback){
    var storedProxy = this.contentProxyUrl;
    var xmlProxy = window.getPortalBaseURI() + "proxy/XMLProxy";
    this.contentProxyUrl = xmlProxy;
    this.ajax({
			url: url,
			type: 'POST',
			data: {xquery: xquery, id: this.id},
			callback: callback
		});
    this.contentProxyUrl = storedProxy;
}
Widget.prototype.webXSLT = function(url, xsltURI, callback){
var storedProxy = this.contentProxyUrl;
    var xmlProxy = window.getPortalBaseURI() + "proxy/XMLProxy";
    this.contentProxyUrl = xmlProxy;
    this.ajax({
			url: url,
			type: 'POST',
			data: {xslt: xsltURI, id: this.id},
			callback: callback
		});
    this.contentProxyUrl = storedProxy;
}

Widget.prototype.isSharedContext = function(){
    if(parent.window.GROUP && parent.window.USERNAME){
        return true;
    }else{
        return false;
    }
}
Widget.prototype.getUserId = function(){
    if(this.isSharedContext())
        return parent.window.USERNAME;
    else
        return null;
}